/*
 * 在css注释中使用@require语法依赖其他模块样式
 * @require font-awesome
 */

.menu {}

.menu-logo {
    height: 120px;
    position: relative;
    background: #1bbc9b;
    z-index: 100000;
}

.menu-logo-img {
    display: block;
    width: 80px;
    height: 80px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -45px;
    margin-top: -45px;
}

.menu-logo-img img {
    width: 100%;
    height: 100%;
    border: 5px solid #ccc;
    border-radius: 1000px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.menu-list {
    position: absolute;
    display: block;
    top: 120px;
    left: 0; right: 0;
}

.menu-list a {
    text-decoration: none;
    display: block;
    height: 35px;
    line-height: 35px;
    font-size: 15px;
    padding-left: 10px;
    border-bottom: 1px solid #ddd;
    border-top: 1px solid #fff;
    background: #f2f2f2;
    vertical-align: middle;

    -webkit-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;
}

.menu-list a.active {
    color: #2c3e50;
    background: #ddd;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

.menu-list a:last-child {
    border-bottom-color: transparent;
}

.menu-list a i {
    display: inline-block;
    width: 23px;
}

.fa.menu-switch {
    width: 20px;
    height: 20px;
    font-size: 20px;
    position: absolute;
    top: 0; right: 0;
    color: #fff;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: none;
    background: rgba(0,0,0, 0);
    padding: 10px;
    z-index: 100001;
}

@media (max-width: 820px) {
    .menu-logo {
        height: 40px;
    }
    .menu-logo-img {
        width: 38px;
        height: 38px;
        top: 0;
        left: 0;
        bottom: auto;
        margin: 0;
    }
    .menu-logo-img img {
        border: 1px solid #fff;
        box-shadow: none;
        border-radius: 0;
    }
    .menu-list a:last-child {
        border-bottom: 1px solid #fff;
    }
    .menu-list {
        top: 40px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        -webkit-transform: translate3d(0, -100%, 0);
        transform: translate3d(0, -100%, 0);
    }
    .show-menu-list .menu-list {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
    .fa.menu-switch {
        display: block;
    }
}